<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Sass::Tree::ImportNode</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (I)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span> &raquo; <span class='title'><a href="Tree.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree.html" title="Sass::Tree (module)">Tree</a></span>
     &raquo; 
    <span class="title">ImportNode</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/Tree/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/Tree/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Sass::Tree::ImportNode 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName"><a href="RootNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RootNode.html" title="Sass::Tree::RootNode (class)">RootNode</a></span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next"><a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Node</a></li>
          
            <li class="next"><a href="RootNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RootNode.html" title="Sass::Tree::RootNode (class)">RootNode</a></li>
          
            <li class="next">Sass::Tree::ImportNode</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">/var/www/sass-pages/.sass/lib/sass/tree/import_node.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>A static node that wraps the <tt><a href="Tree.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree.html" title="Sass::Tree (module)">Sass::Tree</a></tt> for an <code>@import</code>ed file. It doesn&#8217;t have a functional purpose other than to add the <code>@import</code>ed file to the backtrace if an error occurs.</p>

  </div>
</div>
<div class="tags">
  
</div>

  
  
  
  
  
  
  
  
  
  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#imported_file-instance_method" title="#imported_file (instance method)">- (Sass::Engine) <strong>imported_file</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">Returns the imported file.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#imported_filename-instance_method" title="#imported_filename (instance method)">- (String) <strong>imported_filename</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  

  
    <span class="summary_desc">The name of the imported file as it appears in the Sass document.</span>
  
</li>

    
  </ul>


  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#css_import%3F-instance_method" title="#css_import? (instance method)">- (Boolean) <strong>css_import?</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns whether or not this import should emit a CSS @import declaration.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (ImportNode) <strong>initialize</strong>(imported_filename) </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  

  
    <span class="summary_desc">A new instance of ImportNode.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#invisible%3F-instance_method" title="#invisible? (instance method)">- (Boolean) <strong>invisible?</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
  </ul>

  
  
  
  
  
  <h3 class="inherited">Methods inherited from <a href="RootNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RootNode.html" title="Sass::Tree::RootNode (class)">RootNode</a></h3>
  <p class="inherited"><a href="RootNode.html#render-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RootNode.html#render-instance_method" title="Sass::Tree::RootNode#render (method)">#render</a></p>

  
  
  
  
  
  <h3 class="inherited">Methods inherited from <a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Node</a></h3>
  <p class="inherited"><a href="Node.html#%3C%3C-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#%3C%3C-instance_method" title="Sass::Tree::Node#<< (method)">#<<</a>, <a href="Node.html#%3D%3D-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#%3D%3D-instance_method" title="Sass::Tree::Node#== (method)">#==</a>, <a href="Node.html#balance-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#balance-instance_method" title="Sass::Tree::Node#balance (method)">#balance</a>, <a href="Node.html#bubbles%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#bubbles%3F-instance_method" title="Sass::Tree::Node#bubbles? (method)">#bubbles?</a>, <a href="Node.html#deep_copy-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#deep_copy-instance_method" title="Sass::Tree::Node#deep_copy (method)">#deep_copy</a>, <a href="Node.html#each-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#each-instance_method" title="Sass::Tree::Node#each (method)">#each</a>, <a href="Node.html#inspect-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#inspect-instance_method" title="Sass::Tree::Node#inspect (method)">#inspect</a>, <a href="Node.html#style-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#style-instance_method" title="Sass::Tree::Node#style (method)">#style</a>, <a href="Node.html#to_s-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#to_s-instance_method" title="Sass::Tree::Node#to_s (method)">#to_s</a>, <a href="Node.html#to_sass-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#to_sass-instance_method" title="Sass::Tree::Node#to_sass (method)">#to_sass</a>, <a href="Node.html#to_scss-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#to_scss-instance_method" title="Sass::Tree::Node#to_scss (method)">#to_scss</a></p>

  <div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a href="" title="Sass::Tree::ImportNode (class)">ImportNode</a></tt>) <strong>initialize</strong>(imported_filename) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A new instance of ImportNode</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>imported_filename</span>
      
      
      
        &mdash;
        The name of the imported file
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


16
17
18
19</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/import_node.rb', line 16</span>

def initialize(imported_filename)
  @imported_filename = imported_filename
  super(nil)
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id="imported_file=-instance_method"></span>
      <span id="imported_file-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="imported_file-instance_method">
  
    - (<tt><a href="Engine.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Engine.html" title="Sass::Engine (class)">Sass::Engine</a></tt>) <strong>imported_file</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the imported file.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Engine.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Engine.html" title="Sass::Engine (class)">Sass::Engine</a></tt>)</span>
      
      
      
      
    </li>
  
</ul>
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt><a href="SyntaxError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SyntaxError.html" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>)</span>
      
      
      
      
        &mdash;
        If no file could be found to import.
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


27
28
29</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/import_node.rb', line 27</span>

def imported_file
  @imported_file ||= import
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="imported_filename-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="imported_filename-instance_method">
  
    - (<tt>String</tt>) <strong>imported_filename</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The name of the imported file as it appears in the Sass document.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


10
11
12</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/import_node.rb', line 10</span>

def imported_filename
  @imported_filename
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="css_import?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>css_import?</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns whether or not this import should emit a CSS @import declaration</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
        &mdash;
        Whether or not this is a simple CSS @import declaration.
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


34
35
36
37
38
39
40</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/import_node.rb', line 34</span>

def css_import?
  if @imported_filename =~ /\.css$/
    @imported_filename
  elsif imported_file.is_a?(String) && imported_file =~ /\.css$/
    imported_file
  end
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="invisible?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>invisible?</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


21</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/import_node.rb', line 21</span>

def invisible?; to_s.empty? end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:54 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>